home *** CD-ROM | disk | FTP | other *** search
- ;This function draws a rectangle given
- ;a starting point and x,y offsets.
- ;
- ;Function name "EDSBOXOF.LSP" - Execution command "BO"
- ;
- ;Written by Christopher Conrad and Steve Brown
- ;
- ;
- ;
- (defun C:BO ()
- (GRAPHSCR)
- (TERPRI)
- (SETQ PNT1 (GETPOINT "FIRST POINT ")) (TERPRI)
- (SETQ PNT3 (GETPOINT "KEY-IN OFFSETS : ")) (TERPRI)
- (SETQ PNT2 (LIST (+ (CAR PNT1) (CAR PNT3)) (CADR PNT1)))
- (SETQ PNT4 (LIST (CAR PNT1) (+ (CADR PNT1) (CADR PNT3))))
- (SETQ PNT3 (LIST (CAR PNT2) (CADR PNT4)))
- (COMMAND "LINE" PNT1 PNT2 PNT3 PNT4 "C")
- )